//
//  Common.swift
//  微博
//
//  Created by 田凯 on 16/4/17.
//  Copyright © 2016年 田凯. All rights reserved.
//

import UIKit
// 切换根视图使用通知名字标识
let SwitchDefaultVcNSNotification = "SwitchDefaultVcNSNotification"

//微博账号 密码
let weiboName = "15166835442"
let weiboPwd = "q123123"

let APPKEY = "2938090449"
let APPSECRECT = "130ba9d97351700183813c65b6e27100"
let REDIRECT_RRI = "http://www.baidu.com/"

//屏幕的宽度
let ScreenW = UIScreen.mainScreen().bounds.size.width
let ScreenH = UIScreen.mainScreen().bounds.size.height
//app 主题颜色
let ThemeColor = UIColor.orangeColor()
//RGB颜色
func RGB(red  red:CGFloat, green:CGFloat, blue: CGFloat)->UIColor{

    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
}
 //随机颜色
    func RandomColor() -> UIColor{
    //获取随机数
        let r = random() % 256
        let g = random() % 256
        let b = random() % 256
        return RGB(red: CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
    
    }
    
    
